<template>
  <!-- :default-active="activeIndex2" -->
  <el-menu
    router
    :default-active="$route.path"
    class="el-menu-demo"
    mode="horizontal"
    @select="handleSelect"
    background-color="#545c64"
    text-color="#fff"
    active-text-color="#ffd04b"
  >
    <el-menu-item index="/wel">
      <router-link to="/wel"
        ><img src="../assets/三湘银行.png" alt="" class="logo"
      /></router-link>
    </el-menu-item>

    <el-menu-item index="/product">
      <router-link to="/product">理财产品</router-link>
    </el-menu-item>
    <el-menu-item index="/order">
      订单管理
      <!-- <router-link to="/order">订单管理</router-link> -->
    </el-menu-item>

    <el-menu-item index="/userCenter">
      <router-link to="/userCenter">个人中心</router-link>
    </el-menu-item>
    <el-menu-item :index="this.aaaa" :disabled="this.bbbb">
      <!-- <router-link to="/manager">业务管理</router-link> -->
      {{ TTT }}
    </el-menu-item>
    <el-menu-item index="/login" class="logaaaa">
      <!-- <router-link to="/manager">业务管理</router-link> -->
      退出登录
    </el-menu-item>

    <router-view></router-view>
  </el-menu>
</template>

<script>
import Cookies from "js-cookie";

export default {
  data() {
    return {
      bbbb: true,
      aaaa: "/manager",
      TTT: "",
      // showThis: {
      //   disabled : false,
      // }
    };
  },
  created() {
    this.first();
  },
  methods: {
    first() {
      if (Cookies.get("adminFlag") == 1) {
        this.bbbb = !this.bbbb;
        this.TTT = "业务管理";
      }
    },
  },
};
</script>

<style scoped>
.logaaaa {
  margin-left: 137px;
}
a {
  text-decoration: none;
}
.el-menu {
  width: 50%;
  position: absolute;
  left: 50%;
  margin-left: -480px;
}
.home_img span img {
  width: 100%;
}
.logo {
  float: right;
  margin-top: 10px;
  margin-right: 15px;
  z-index: 10;
  /* position: relative;
  
  right: -380px;
  bottom: 50px; */
  width: 233px;
  height: 40px;
  /* background-color: blue; */
}
</style>